function formatDate(){
  var loginTime=new Date();
  var year=loginTime.getFullYear();
  var month=loginTime.getMonth()+1;
  var day=loginTime.getDate();
  var hour=loginTime.getHours();
  var min=loginTime.getMinutes();
  var sec=loginTime.getSeconds();
  if(month<10) month='0'+month;
  if(day<10) day='0'+day;
  return year+'-'+month+'-'+day;
}
module.exports={
  formatDate:formatDate
}